package com.lijian.service;

import com.alibaba.fastjson.JSONArray;
import com.lijian.base.Result;
import com.lijian.model.SysPermission;

public interface PermissionService {
    Result<JSONArray> listAllPermission();

    Result<SysPermission> listByRoleId(Integer intValue);

    Result<SysPermission> findMenuAll();

    Result<SysPermission> save(SysPermission sysPermission);

    SysPermission findSysPermissionById(Integer id);

    Result update(SysPermission sysPermission);

    Result delete(Integer id);

    Result findMenu(Integer userId);
}
